<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		ul{
			width: 1000px;
			margin:0 auto;
			margin-top: 100px;
			overflow: hidden;
		}
		li{
			width: 240px;
			height: 150px;
			float: left;
			margin-right: 10px;
			overflow: hidden;

		}
		li .top{
			width: 240px;
			height: 150px;
			margin-bottom: 20px;
			background-color: red;
			transition: margin-top 1s;
		}
		li .bot{
			width: 240px;
			height: 150px;
			background-color: #ccc;
			text-align: center;
			line-height: 150px;
			color: blue;
		}
		li:hover .top{
			margin-top: -170px;
		}
	</style>
</head>
<body>
	<ul>
		<li>
			<div class="top"></div>
			<div class="bot">红</div>
		</li>
		<li>
			<div class="top"></div>
			<div class="bot">红</div>
		</li>
		<li>
			<div class="top"></div>
			<div class="bot">红</div>
		</li>
		<li>
			<div class="top"></div>
			<div class="bot">红</div>
		</li>
	</ul>
</body>
</html>